{if $FORM_ACTION}
<div class="gallery-name">{$NAME}</div>
<div class="gallery-wrapper" tmpl="{$ID}">
  <input id="{$ID}" name="{$ID}" type="hidden" class="konfigurator" value="">
  <table>
    <tr>
      <td class="gallery-td_bright"></td>
      <td class="gallery-td_dark"></td>

    </tr>
    <tr style="height:32px">
      <td class="gallery-td_bright"><span class="name_option">noch nicht gewählt</span></td>
      <td class="gallery-td_dark" style="width:123px"><input type="button" name="" href="gallery_{$ID|lower}" class="button_popup_layer" value="bitte w&auml;hlen Sie"></td>
      <!--<td class="gallery-td_dark">
        <!--<span class="answer" style="display:none" id="tt_{$ID}__{$option.ID}">{$option.HELP}</span>
  	  	<img class="ask" rel="tt_{$ID}__{$option.ID}" src="templates/itdotmedia/img/frage.png">
      </td>-->
    </tr>
    <tr>
      <td class="gallery-td_bright"></td>
      <td class="gallery-td_dark"></td>

    <tr>
  </table>
</div>

	{if $LOAD_VALUE!=''}
<script>
	$(document).on('konfigurator_load', function(event, object_name) {ldelim}
		if (object_name == 'KONFIGURATOR_{$ID}')
			window['KONFIGURATOR_{$ID}'].loadValue('{$LOAD_VALUE}');
	{rdelim});
</script>
	{/if}

{else}
<div class="gallery-td_dark" style="width:123px">
	<input type="button" name="" href="gallery_{$ID|lower}" class="button_popup_layer" value="{$NAME}">
</div>
<script>
	$(document).on('konfigurator_load', function(event, object_name) {ldelim}
		if (object_name == 'KONFIGURATOR_{$ID}')
			window['KONFIGURATOR_{$ID}'].loadFirstValue();
	{rdelim});
</script>

{/if}
